package com.example.springboot.demo.entity;

import com.example.springboot.demo.annotation.ControllerTestAnnotation;

import java.lang.annotation.Annotation;
import java.util.function.Predicate;

@ControllerTestAnnotation
public class AnnotationTest {

    public static void main(String[] args) {
        Predicate<String> predicateClassName = null;
        Predicate<Integer> predicate = x -> x >  0;
        System.out.println(predicate.test(100));
        predicateClassName = (className) -> {
            System.out.println("123");
            return className.endsWith("*controller".substring(1));
        };
        System.out.println(predicateClassName.test("controller"));
    }
}
